package com.lhn.spring5.aopanno;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.SpringVersion;

/**
 * @author lhn
 * @date 2022/01/04 17:43
 * @since 1.0.0
 **/
public class AopTest {

    @Test
    public void test1() {
        System.out.println(SpringVersion.getVersion());

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        User user = context.getBean("user", User.class);
        user.add();
    }
}